﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using DAL;
using DTO;

namespace BUS
{
    public class TheLoaiBUS
    {
        public List<TheLoaiDTO> LayDachSachTheLoaihBUS()
        {
            TheLoaiDAL theloaiDAL = new TheLoaiDAL();
            return theloaiDAL.LayDanhSachDAL();
        }
        public string LayTenTheLoaiBUS(string MaTheLoai)
        {
            TheLoaiDAL theloaiDAL = new TheLoaiDAL();
            return theloaiDAL.LayTenTheLoaiDAL(MaTheLoai);
        }
        public string LayMaTheLoaiBUS(string TenTheLoai)
        {
            TheLoaiDAL theloaiDAL = new TheLoaiDAL();
            return theloaiDAL.LaymaTheLoaiDAL(TenTheLoai);
        }
    }
}
